package 数据结构.链表.非带头链表.非循环链表.双向链表;

public class Main {
    public static void main(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addFirst(3);
        list.addFirst(2);
        list.addFirst(1);

        list.addLast(3);
        list.addLast(2);
        list.addLast(2);
        list.addLast(2);
        list.addLast(1);

        list.clear();
//        list.removeAllKey(2);
//        list.remove(3);
//        System.out.println(list.contains(99));
//        list.addIndex(2,999);
//        System.out.println(list.size());
        list.display();
    }
}
